<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>创建新项目</title>
		<link
			rel="stylesheet"
			href="{{ url_for('static', filename='css/style.css') }}"
		/>
	</head>
	<body>
		<div class="container">
			<div class="card">
				<a href="{{ url_for('index') }}" class="btn btn-back">返回项目列表</a>
				<h2>创建新项目</h2>
				{% if error %}
				<div class="error">{{ error }}</div>
				{% endif %}
				<form action="{{ url_for('create_project') }}" method="post">
					<div class="form-group">
						<label for="name">项目名称</label>
						<input
							type="text"
							id="name"
							name="name"
							required
							autocomplete="off"
						/>
					</div>
					<div class="form-group">
						<label for="description">项目描述</label>
						<textarea id="description" name="description"></textarea>
					</div>
					<div class="form-group">
						<label for="start_date">开始日期 (YYYY-MM-DD)</label>
						<input type="text" id="start_date" name="start_date" required />
					</div>
					<div class="form-group">
						<label for="end_date">结束日期 (YYYY-MM-DD)</label>
						<input type="text" id="end_date" name="end_date" required />
					</div>
					<button type="submit" class="btn">创建项目</button>
				</form>
			</div>
		</div>
	</body>
</html>
